<template>
  <div>
    <!-- 电影演出-->
    <div id="main">
      <!-- 轮播 -->

      <Movetop :dianying="dianying" />
    </div>
  </div>
</template>

<script>
//先引用--封装好的link.js
import link from "@/api/link.js";
import Movetop from "@/components/life/Move/Movetop.vue";

export default {
  components: {
    Movetop,
  },
  data() {
    return {
      dianying: [],
    };
  },
  mounted() {
    //需要自动发送请求---axios调用link---发送请求；
    link("user/life15/datamock").then(({ data }) => {
      console.log(data);
      this.dianying = data.dianying;
    });
  },
};
</script>

<style>
#main {
  height: 1000px;
  overflow: auto;
  margin-bottom: 0.7333rem;
}
</style>